/*
 * my_lib.h
 *
 *  Created on: Nov 26, 2012
 *      Author: andrey
 */

#ifndef MY_LIB_H_
#define MY_LIB_H_

#include <stm32f4xx.h>
#include <stm32f4xx_gpio.h>
#include <stm32f4xx_rcc.h>

int GetCurrentTime();
void Delay(__IO uint32_t msDelay);
void TimingDelay_Decrement(void);

void turnPinOff(GPIO_TypeDef* GPIOx, uint32_t pinBits);
void turnPinOn(GPIO_TypeDef* GPIOx, uint32_t pinBits);

void mySTM_EVAL_LEDInit(uint32_t RCC_AHB1Periph, uint32_t pin,
		GPIO_TypeDef* GPIOx);

#endif /* MY_LIB_H_ */
